﻿@model SuperiorModel.TPagedModelList<SuperiorModel.ManagerAccountModel>
<table class="layui-table" id="AppList" lay-filter="test">
    <thead>
        <tr>
            <th>ID</th>
            <th>OPENID</th>
            <th>头像</th>
            <th>联系手机</th>
            <th>真实姓名</th>
            <th>提成金额</th>
            <th>创建时间</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.TList)
        {
            <tr>
                <td>@item.Id</td>
                <td>@item.OpenId</td>
                <td><img style="width:30px;height:30px;" src="@item.HeadImgUrl" /></td>
                <td>@item.PhoneNumber</td>
                <td>@item.TrueName</td>
                <td>@item.Amount</td>
                <td>@item.CreateTime</td>
                <td>
                    @switch (item.OptionStatus)
                    {
                        case 1:
                            <span style="color:green">正常</span>
                            break;
                        case 0:
                            <span style="color:orangered">已冻结</span>
                            break;
                        
                    }
                </td>

                <td>

                    @switch (item.OptionStatus)
                    {
                        case 1:
                            <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini OptionAccount" href="javascript:void(0);" Opt="0" OptionId="@item.Id">冻结</a>
                            break;
                        case 0:
                            <a class="layui-btn layui-btn-normal layui-btn-xs layui-btn-mini OptionAccount" href="javascript:void(0);" Opt="1" OptionId="@item.Id">恢复</a>
                            break;
                       
                    }
                </td>
            </tr>
        }
    </tbody>
</table>
@Html.Partial("_TPager", Model.PagingResult)